<?php
namespace app\erp\validate;

use think\Validate;

class Judgerule extends Validate
{

    protected $rule = [
        'judge_star' => 'require|number',
        'judge_content' => 'require',
        'goods_sku' => 'require'
    ];

    protected $message = [
        'goods_sku.require' => '商品编号错误',
        'judge_content.require' => '评价内容不能为空',
        'judge_star.require' => '评分不能为空',
        'judge_star.number' => '评分只能是数字'
    ];
}